#define _CRT_SECURE_NO_WARNINGS
#include"BF.h"
#include"KMP.h"
void test_BF() {
	cout << BF("ababcabcdabcde", "abcd") << endl;
	cout << BF("ababcabcdabcde", "abcdf") << endl;
	cout << BF("ababcabcdabcde", "ab") << endl;
}
void test_KMP() {
	cout << KMP("ababcabcdabcde", "abcd",0) << endl;
	cout <<KMP("ababcabcdabcde", "abcdf",0) << endl;
	cout << KMP("ababcabcdabcde", "ab",0) << endl;
}
int main() {
	//test_BF();
	test_KMP();
	return 0;
}